function loginAuth(OriginComponent) {
    return (props) => {
        // 根据有无token来判断是否登录
        const token = localStorage.getItem("token")
        if (token) {
            return <OriginComponent {...props}></OriginComponent>
        } else {
            return <h2>您还没有登录。。。</h2>
        }
    }
}

export default loginAuth